#!/bin/sh

serverinfo=$1
vip=$2
realserversh=/home/LVS
/bin/rm -rf $realserversh/realserver.sh
cp $realserversh/realserver.sh.model $realserversh/realserver.sh
/bin/sed -i -e "/^SNS_VIP/{ s@vip@$vip@; }" $realserversh/realserver.sh
/bin/chmod 755 $realserversh/realserver.sh
/usr/local/bin/python $realserversh/ModuleClass.py 8888 $serverinfo realserver $realserversh/realserver.sh
